import request from '@/utils/request2'

// 列表
export function listNotice(data) {
  return request({
    url: '/mgm-activity/page',
    method: 'post',
    data: data
  })
}

// 详细
export function getNotice(id) {
  return request({
    url: '/mgm-activity/page?id=' + id,
    method: 'post'
  })
}

// 新增
export function addNotice(data) {
  return request({
    url: '/mgm-activity/create',
    method: 'post',
    data: data
  })
}

// 修改
export function updateNotice(data) {
  return request({
    url: '/mgm-activity/update',
    method: 'post',
    data: data
  })
}

// 删除
export function delNotice(ids) {
  return request({
    url: '/mgm-activity/delete',
    method: 'post',
    data: {
      idList: ids
    }
  })
}
